package com.yt.system.domain;

import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

public class Activity implements Serializable {
    private Integer actid;

    private Integer acid;

    private Integer aid;

    private String actname;

    private Integer actjoinpeople;

    @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date actstarttime;

    @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date actendtime;

    private Date actupdtime;

    private String actcontent;

    private Integer actjoinednum;

    private Integer flag;

    private Integer vflag;

    private String actadress;

    private Activitytype activitytype;

    private User user;

    public Activity(Integer actid, Integer acid, Integer aid, String actname, Integer actjoinpeople, Date actstarttime, Date actendtime, Date actupdtime, String actcontent, Integer actjoinednum, Integer flag, Integer vflag, String actadress, Activitytype activitytype, User user) {
        this.actid = actid;
        this.acid = acid;
        this.aid = aid;
        this.actname = actname;
        this.actjoinpeople = actjoinpeople;
        this.actstarttime = actstarttime;
        this.actendtime = actendtime;
        this.actupdtime = actupdtime;
        this.actcontent = actcontent;
        this.actjoinednum = actjoinednum;
        this.flag = flag;
        this.vflag = vflag;
        this.actadress = actadress;
        this.activitytype = activitytype;
        this.user = user;
    }

    public Activity() {
        super();
    }

    public Integer getActid() {
        return actid;
    }

    public void setActid(Integer actid) {
        this.actid = actid;
    }

    public Integer getAcid() {
        return acid;
    }

    public void setAcid(Integer acid) {
        this.acid = acid;
    }

    public Integer getAid() {
        return aid;
    }

    public void setAid(Integer aid) {
        this.aid = aid;
    }

    public String getActname() {
        return actname;
    }

    public void setActname(String actname) {
        this.actname = actname == null ? null : actname.trim();
    }

    public Integer getActjoinpeople() {
        return actjoinpeople;
    }

    public void setActjoinpeople(Integer actjoinpeople) {
        this.actjoinpeople = actjoinpeople;
    }

    public Date getActstarttime() {
        return actstarttime;
    }

    public void setActstarttime(Date actstarttime) {
        this.actstarttime = actstarttime;
    }

    public Date getActendtime() {
        return actendtime;
    }

    public void setActendtime(Date actendtime) {
        this.actendtime = actendtime;
    }

    public Date getActupdtime() {
        return actupdtime;
    }

    public void setActupdtime(Date actupdtime) {
        this.actupdtime = actupdtime;
    }

    public String getActcontent() {
        return actcontent;
    }

    public void setActcontent(String actcontent) {
        this.actcontent = actcontent == null ? null : actcontent.trim();
    }

    public Integer getActjoinednum() {
        return actjoinednum;
    }

    public void setActjoinednum(Integer actjoinednum) {
        this.actjoinednum = actjoinednum;
    }

    public Activitytype getActivitytype() {
        return activitytype;
    }

    public void setActivitytype(Activitytype activitytype) {
        this.activitytype = activitytype;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    public Integer getVflag() {
        return vflag;
    }

    public void setVflag(Integer vflag) {
        this.vflag = vflag;
    }

    public String getActadress() {
        return actadress;
    }

    public void setActadress(String actadress) {
        this.actadress = actadress;
    }

    @Override
    public String toString() {
        return "Activity{" +
                "actid=" + actid +
                ", acid=" + acid +
                ", aid=" + aid +
                ", actname='" + actname + '\'' +
                ", actjoinpeople=" + actjoinpeople +
                ", actstarttime=" + actstarttime +
                ", actendtime=" + actendtime +
                ", actupdtime=" + actupdtime +
                ", actcontent='" + actcontent + '\'' +
                ", actjoinednum=" + actjoinednum +
                ", flag=" + flag +
                ", vflag=" + vflag +
                ", actadress='" + actadress + '\'' +
                ", activitytype=" + activitytype +
                ", user=" + user +
                '}';
    }
}